from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
	user = models.ForeignKey(User, unique=True)
	gender = models.CharField(max_length=6,blank=True)
	about = models.TextField(blank=True)
	grade = models.IntegerField(null=True)
	site = models.URLField(blank=True)
	aim = models.CharField(max_length=100, blank=True)
	msn = models.CharField(max_length=100, blank=True)
	yahoo = models.CharField(max_length=100, blank=True)
	
	def get_absolute_url(self):
		return "/panel/%s/" % self.user.username
	def __unicode__(self):
		return "%s's Profile" % (self.user.username)